package com.ebs.md.fxmonitor.marketmonitor.esper;

/**
 * Perforce Revision:
 *  $File: //depot/MarketData/fxmonitor/main/src/main/java/com/ebs/md/fxmonitor/marketmonitor/esper/SpoofBySizeSingleEventStatement.java $
 *  $Revision: #1 $  $Change: 115236 $  $DateTime: 2012/09/27 10:37:32 $  $Author: Aviad.Yosef $
 */

import com.ebs.md.container.esper.AbsStatement;
import com.ebs.md.fxmonitor.marketmonitor.config.ISpoofingBySizeConfig;


public class SpoofBySizeSingleEventStatement
extends AbsStatement<ISpoofingBySizeConfig>
{

	@Override
	protected String createEplExpression() {
		String str =
		String.format(eplExpressionText
			, config.getName()                   //1. configuration name.
			, getRegion()                        //2. region
			, config.getLifeTimeThreshold()      //3. entryLifeTime.
			, config.getPriceLevelThreshold()    //4. obPosition.
			, config.getOrderSizeThreshold()     //5. total amount.
			, config.getOrderFillSizeThreshold() //6. FillSize ratio
			);
		return str;
	}
	
}
